package per.jdz.demo.config;

import org.springframework.stereotype.Component;

import per.jdz.retryer.listener.RetryerListener;
import per.jdz.retryer.strategy.AbstractRetryerStrategy;

@Component("jdz-listener")
public class CustomListener implements RetryerListener{

    @Override
    public void exec(AbstractRetryerStrategy retryerStrategy) {
        System.out.println(Thread.currentThread().getName() + " retrying...");
    }
    
}
